// 获取域名
export const getDomain = (): string => {
   let protocol = window.location.protocol;
   let hostname = window.location.hostname;
   let port = window.location.port;
   if(port){
       port = ":"+port;
   }
   let domain = protocol+"//"+hostname+port;
   domain = "http://localhost:8080";
  return domain;
};
